package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 添加渠道关联公司请求对象
 * @date 2020-07-01 19:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "添加渠道关联公司请求对象", description = "添加渠道关联公司请求对象")
public class AddChannelCompanyReq extends BaseReqObj {

    private static final long serialVersionUID = 3688907066316412264L;

    /**
     * 渠道 id
     */
    @NotNull(message = "渠道 id 不能为空")
    @ApiModelProperty(value = "渠道 id", notes = "渠道 id", dataType = "String", required = true)
    private Integer channelId;

    /**
     * 公司编码
     */
    @NotEmpty(message = "公司编码不能为空")
    @ApiModelProperty(value = "公司编码", notes = "公司编码", dataType = "String", required = true)
    @Size(max = 10, message = "长度为 10")
    private String companyCode;

    /**
     * 公司名称
     */
    @NotEmpty(message = "公司名称不能为空")
    @ApiModelProperty(value = "公司名称", notes = "公司名称", dataType = "String", required = true)
    @Size(max = 30, message = "长度为 30")
    private String companyName;

    /**
     * 描述
     */
    @NotEmpty(message = "描述不能为空")
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String", required = true)
    @Size(max = 255, message = "长度为 255")
    private String description;

}
